#pragma once

class CMFCPropertyGridCtrl;
class CListSet
{
public:
	CListSet(CString str):m_str(str){}
	void OnInitList(CMFCPropertyGridCtrl& root, CString str);
	void OnSetConfig(CMFCPropertyGridCtrl& root, CString str);
private:
	CString m_str;
	CString m_config;
	void recursion(CMFCPropertyGridCtrl& root, CMFCPropertyGridProperty* parent, CString str);
	void handleNode(CMFCPropertyGridCtrl& root, CMFCPropertyGridProperty* pNode, CString title, CString file);
	void addNode(CMFCPropertyGridCtrl& root, CString title, CString file);
	void addNode(CMFCPropertyGridProperty* pNode, CString title, CString file);
};